package com.biwei.app.wrap.remote;

import com.biwei.app.wrap.bean.AccountList;
import feign.*;

import java.util.Map;

public interface UserRemoteService {

    @RequestLine("GET /apis/v1/user/accounts")
    AccountList accounts();

    @RequestLine("GET /apis/{path}")
    Object proxy(@Param("path") String path, @QueryMap Map<String, String> map);

    @RequestLine("POST /apis/{path}")
    @Body("{body}")
    @Headers({"Content-Type: application/json","Accept: application/json"})
    Object proxyPost(@Param("path") String path, @Param("body") String body);
}
